package com.itheima.stock.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.stock.entity.StockBusiness;
import com.itheima.stock.service.StockBusinessService;
import com.itheima.stock.mapper.StockBusinessMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【stock_business(主营业务表)】的数据库操作Service实现
* @createDate 2025-06-13 15:22:16
*/
@Service
public class StockBusinessServiceImpl extends ServiceImpl<StockBusinessMapper, StockBusiness>
    implements StockBusinessService{

    private final StockBusinessMapper stockBusinessMapper;

    public StockBusinessServiceImpl(StockBusinessMapper stockBusinessMapper) {
        this.stockBusinessMapper = stockBusinessMapper;
    }

    @Override
    public List<StockBusiness> getStockBusiness() {
        return stockBusinessMapper.selectAll();
    }
}




